Skip to content

ci: cache Studio regression npm downloads - #66

Merged
Microck merged 1 commit into
masterfrom
ci/cache-regression-npm-downloads
Nov 14, 2026
Merged

Microck merged 1 commit into
masterfrom
ci/cache-regression-npm-downloads

Conversation

@Microck

@Microck Microck commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Change

Use the existing SHA-pinned setup-node action to cache npm package downloads in the read-only regression job. The key covers both lockfiles. Both npm ci --ignore-scripts invocations and all existing checks remain; no node_modules, build outputs, or credentials are cached. The release job and its cache behavior are unchanged.

Baseline and validation

  • Previous PR regression: 69s job, 32s client install (601 packages).
  • Master regression: 70s job, 33s client install. Different events; not a before/after comparison.
  • Parsed both YAML versions and confirmed the only changes are the npm cache mode and the two lockfile paths under regression setup. Check exact-head PR CI and cache logs; savings are unmeasured pending a comparable warm run.

@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
opencode-studio Ready Ready Preview Nov 14, 2026 9:27am UTC

Microck commented Nov 14, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

This PR enables npm package-download caching in the read-only regression job of .github/workflows/regression.yml, keyed on both lockfiles.

  • Behavior: the existing SHA-pinned setup-node step now sets npm caching and lists server/package-lock.json and client-next/package-lock.json as cache dependency paths. node_modules, build outputs, and credentials are not cached. The release job is unchanged.
  • Risk: savings are not measured. The author's comparison uses runs with different events, so it does not show a before-and-after result.
  • Reviewer action: check the exact-head PR CI run and the cache logs. Confirm a warm run restores the npm cache and reduces client install time.

Walkthrough

The regression workflow now enables npm caching in its Node.js setup step. It uses the server and client package lockfiles as cache dependency paths.

Merge Risk: Minimal · up to 38180

This CI-only change enables npm download caching for the regression job. It is low risk and easy to revert, and it leaves installs and checks unchanged. The remaining unknown is how much time it saves.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 1b44ebeb-d469-4710-a9ea-94deac3f63b9
Commits

Reviewing files that changed from the base of the PR and between 37f98c9 and 3818061.

Files selected for processing: 1

  • .github/workflows/regression.yml

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@Microck
Microck marked this pull request as ready for review November 14, 2026 09:41
@Microck
Microck merged commit 2867f33 into master Nov 14, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 3818061b Deployed Nov 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant